﻿#include "CItemResultBase.h"

CItemResultBase::CItemResultBase()
{
	m_sItemResultGuid = "";
	m_sPolAreaGuid = "";
	m_sPointGuid = "";
	m_sItemGuid = "";
	m_sTaskGuid = "";
	m_sTemplateGuid = "";
	m_sStartTime = "";
	m_sTaskName = "";
	m_sPointName = "";
	m_sItemName = "";
	m_sGuid = "";
	m_nDevType = 0;
	m_nCheckType = 0;
	m_nDevTypeCode = 0;
	m_sDataThreadHoldHH = "80";     //数字阈值--高高报警
	m_sDataThreadHoldLL = "-30";     //数字阈值--低低报警
	m_sDataThreadHoldH = "60";      //数字阈值--高报警
	m_sDataThreadHoldL = "-10";      //数字阈值--低报警
	m_sTaskExecGuid = "";
	m_nBelong = 0;
	m_nAlarmLevel = 0;
	m_nState = 0;
	m_sDataDesc = "";
	m_dRealLocation = 0;
	m_nRollerNum = 0;
	m_sRollerDesc = "";
	m_bIsShow = false;
	m_dValue = 0;
	m_sResultDesc = "";
}

CItemResultBase::~CItemResultBase()
{
}

void CItemResultBase::copyData(CItemResultBase * pItemResult)
{
	pItemResult->m_sItemResultGuid = m_sItemResultGuid;
	pItemResult->m_sPolAreaGuid = m_sPolAreaGuid;
	pItemResult->m_sPointGuid = m_sPointGuid;
	pItemResult->m_sItemGuid = m_sItemGuid;
	pItemResult->m_sTaskGuid = m_sTaskGuid;
	pItemResult->m_sTemplateGuid = m_sTemplateGuid;
	pItemResult->m_sStartTime = m_sStartTime;
	pItemResult->m_sTaskName = m_sTaskName;
	pItemResult->m_sPointName = m_sPointName;
	pItemResult->m_sItemName = m_sItemName;
	pItemResult->m_sGuid = m_sGuid;
	pItemResult->m_nDevType = m_nDevType;
	pItemResult->m_nCheckType = m_nCheckType;
	pItemResult->m_nDevTypeCode = m_nDevTypeCode;
	pItemResult->m_sDataThreadHoldHH = m_sDataThreadHoldHH;     //数字阈值--高高报警
	pItemResult->m_sDataThreadHoldLL = m_sDataThreadHoldLL;     //数字阈值--低低报警
	pItemResult->m_sDataThreadHoldH = m_sDataThreadHoldH;      //数字阈值--高报警
	pItemResult->m_sDataThreadHoldL = m_sDataThreadHoldL;      //数字阈值--低报警
	pItemResult->m_nBelong = m_nBelong;
	pItemResult->m_sTaskExecGuid = m_sTaskExecGuid;
	pItemResult->m_nAlarmLevel = m_nAlarmLevel;
	pItemResult->m_nState = m_nState;
	pItemResult->m_sDataDesc = m_sDataDesc;
	pItemResult->m_dRealLocation = m_dRealLocation;
	pItemResult->m_nRollerNum = m_nRollerNum;
	pItemResult->m_sRollerDesc = m_sRollerDesc;
	pItemResult->m_bIsShow = m_bIsShow;
	pItemResult->m_dValue = m_dValue;
	pItemResult->m_sResultDesc = m_sResultDesc;
}
